package April._16.homework.work3;

import java.io.File;
import java.io.FileFilter;

public class MyFileFilter implements FileFilter {
    @Override
    public boolean accept(File pathname) {
        if (pathname.getName().startsWith("a") &&pathname.getName().endsWith(".txt")) {
            return true;
        }
        return false;
    }
}
